home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / ASRegistry.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  11.0 KB  |  314 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ASRegistry.p
  3.  
  4.      Contains:    AppleScript Registry constants.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT ASRegistry;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __ASREGISTRY__}
  30. {$SETC __ASREGISTRY__ := 1}
  31.  
  32. {$I+}
  33. {$SETC ASRegistryIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __APPLEEVENTS__}
  38. {$I AppleEvents.p}
  39. {$ENDC}
  40. {    Errors.p                                                    }
  41. {        ConditionalMacros.p                                        }
  42. {    Types.p                                                        }
  43. {    Memory.p                                                    }
  44. {        MixedMode.p                                                }
  45. {    OSUtils.p                                                    }
  46. {    Events.p                                                    }
  47. {        Quickdraw.p                                                }
  48. {            QuickdrawText.p                                        }
  49. {    EPPC.p                                                        }
  50. {        AppleTalk.p                                                }
  51. {        Files.p                                                    }
  52. {            Finder.p                                            }
  53. {        PPCToolbox.p                                            }
  54. {        Processes.p                                                }
  55. {    Notification.p                                                }
  56.  
  57. {$IFC UNDEFINED __AEREGISTRY__}
  58. {$I AERegistry.p}
  59. {$ENDC}
  60.  
  61. {$IFC UNDEFINED __AEOBJECTS__}
  62. {$I AEObjects.p}
  63. {$ENDC}
  64.  
  65. {$PUSH}
  66. {$ALIGN MAC68K}
  67. {$LibExport+}
  68.  
  69. CONST
  70.     keyAETarget                    = 'targ';                        {  0x74617267  }
  71.     keySubjectAttr                = 'subj';                        {  0x7375626a  }
  72. { Magic 'returning' parameter: }
  73.     keyASReturning                = 'Krtn';                        {  0x4b72746e  }
  74. { AppleScript Specific Codes: }
  75.     kASAppleScriptSuite            = 'ascr';                        {  0x61736372  }
  76.     kASTypeNamesSuite            = 'tpnm';                        {  0x74706e6d  }
  77. { dynamic terminologies }
  78.     typeAETE                    = 'aete';                        {  0x61657465  }
  79.     typeAEUT                    = 'aeut';                        {  0x61657574  }
  80.     kGetAETE                    = 'gdte';                        {  0x67647465  }
  81.     kGetAEUT                    = 'gdut';                        {  0x67647574  }
  82.     kUpdateAEUT                    = 'udut';                        {  0x75647574  }
  83.     kUpdateAETE                    = 'udte';                        {  0x75647465  }
  84.     kCleanUpAEUT                = 'cdut';                        {  0x63647574  }
  85.     kASComment                    = 'cmnt';                        {  0x636d6e74  }
  86.     kASLaunchEvent                = 'noop';                        {  0x6e6f6f70  }
  87.     keyScszResource                = 'scsz';                        {  0x7363737A  }
  88.     typeScszResource            = 'scsz';                        {  0x7363737A  }
  89. { subroutine calls }
  90.     kASSubroutineEvent            = 'psbr';                        {  0x70736272  }
  91.     keyASSubroutineName            = 'snam';
  92.  
  93. { Operator Events: }
  94. { Binary: }
  95.     kASAdd                        = '+   ';                        {  0x2b202020  }
  96.     kASSubtract                    = '-   ';                        {  0x2d202020  }
  97.     kASMultiply                    = '*   ';                        {  0x2a202020  }
  98.     kASDivide                    = '/   ';                        {  0x2f202020  }
  99.     kASQuotient                    = 'div ';                        {  0x64697620  }
  100.     kASRemainder                = 'mod ';                        {  0x6d6f6420  }
  101.     kASPower                    = '^   ';                        {  0x5e202020  }
  102.     kASEqual                    = kAEEquals;
  103.     kASNotEqual                    = '≠   ';                        {  0xad202020  }
  104.     kASGreaterThan                = kAEGreaterThan;
  105.     kASGreaterThanOrEqual        = kAEGreaterThanEquals;
  106.     kASLessThan                    = kAELessThan;
  107.     kASLessThanOrEqual            = kAELessThanEquals;
  108.     kASComesBefore                = 'cbfr';                        {  0x63626672  }
  109.     kASComesAfter                = 'cafr';                        {  0x63616672  }
  110.     kASConcatenate                = 'ccat';                        {  0x63636174  }
  111.     kASStartsWith                = kAEBeginsWith;
  112.     kASEndsWith                    = kAEEndsWith;
  113.     kASContains                    = kAEContains;
  114.  
  115.     kASAnd                        = kAEAND;
  116.     kASOr                        = kAEOR;
  117. { Unary: }
  118.     kASNot                        = kAENOT;
  119.     kASNegate                    = 'neg ';                        {  0x6e656720  }
  120.     keyASArg                    = 'arg ';
  121.  
  122. { event code for the 'error' statement }
  123.     kASErrorEventCode            = 'err ';                        {  0x65727220  }
  124.     kOSAErrorArgs                = 'erra';                        {  0x65727261  }
  125. { Properties: }
  126.     pLength                        = 'leng';                        {  0x6c656e67  }
  127.     pReverse                    = 'rvse';                        {  0x72767365  }
  128.     pRest                        = 'rest';                        {  0x72657374  }
  129.     pInherits                    = 'c@#^';                        {  0x6340235e  }
  130. { User-Defined Record Fields: }
  131.     keyASUserRecordFields        = 'usrf';                        {  0x75737266  }
  132.     typeUserRecordFields        = typeAEList;
  133.  
  134. { Prepositions: }
  135.     keyASPrepositionAt            = 'at  ';                        {  0x61742020  }
  136.     keyASPrepositionIn            = 'in  ';                        {  0x696e2020  }
  137.     keyASPrepositionFrom        = 'from';                        {  0x66726f6d  }
  138.     keyASPrepositionFor            = 'for ';                        {  0x666f7220  }
  139.     keyASPrepositionTo            = 'to  ';                        {  0x746f2020  }
  140.     keyASPrepositionThru        = 'thru';                        {  0x74687275  }
  141.     keyASPrepositionThrough        = 'thgh';                        {  0x74686768  }
  142.     keyASPrepositionBy            = 'by  ';                        {  0x62792020  }
  143.     keyASPrepositionOn            = 'on  ';                        {  0x6f6e2020  }
  144.     keyASPrepositionInto        = 'into';                        {  0x696e746f  }
  145.     keyASPrepositionOnto        = 'onto';                        {  0x6f6e746f  }
  146.     keyASPrepositionBetween        = 'btwn';                        {  0x6274776e  }
  147.     keyASPrepositionAgainst        = 'agst';                        {  0x61677374  }
  148.     keyASPrepositionOutOf        = 'outo';                        {  0x6f75746f  }
  149.     keyASPrepositionInsteadOf    = 'isto';                        {  0x6973746f  }
  150.     keyASPrepositionAsideFrom    = 'asdf';                        {  0x61736466  }
  151.     keyASPrepositionAround        = 'arnd';                        {  0x61726e64  }
  152.     keyASPrepositionBeside        = 'bsid';                        {  0x62736964  }
  153.     keyASPrepositionBeneath        = 'bnth';                        {  0x626e7468  }
  154.     keyASPrepositionUnder        = 'undr';
  155.  
  156.     keyASPrepositionOver        = 'over';                        {  0x6f766572  }
  157.     keyASPrepositionAbove        = 'abve';                        {  0x61627665  }
  158.     keyASPrepositionBelow        = 'belw';                        {  0x62656c77  }
  159.     keyASPrepositionApartFrom    = 'aprt';                        {  0x61707274  }
  160.     keyASPrepositionGiven        = 'givn';                        {  0x6769766e  }
  161.     keyASPrepositionWith        = 'with';                        {  0x77697468  }
  162.     keyASPrepositionWithout        = 'wout';                        {  0x776f7574  }
  163.     keyASPrepositionAbout        = 'abou';                        {  0x61626f75  }
  164.     keyASPrepositionSince        = 'snce';                        {  0x736e6365  }
  165.     keyASPrepositionUntil        = 'till';
  166.  
  167. { Terminology & Dialect things: }
  168.     kDialectBundleResType        = 'Dbdl';                        {  0x4462646c  }
  169. { AppleScript Classes and Enums: }
  170.     cConstant                    = typeEnumerated;
  171.     cClassIdentifier            = pClass;
  172.     cObjectBeingExamined        = typeObjectBeingExamined;
  173.     cList                        = typeAEList;
  174.     cSmallReal                    = typeSMFloat;
  175.     cReal                        = typeFloat;
  176.     cRecord                        = typeAERecord;
  177.     cReference                    = cObjectSpecifier;
  178.     cUndefined                    = 'undf';                        {  0x756e6466  }
  179.     cSymbol                        = 'symb';                        {  0x73796d62  }
  180.     cLinkedList                    = 'llst';                        {  0x6c6c7374  }
  181.     cVector                        = 'vect';                        {  0x76656374  }
  182.     cEventIdentifier            = 'evnt';                        {  0x65766e74  }
  183.     cKeyIdentifier                = 'kyid';                        {  0x6b796964  }
  184.     cUserIdentifier                = 'uid ';                        {  0x75696420  }
  185.     cPreposition                = 'prep';                        {  0x70726570  }
  186.     cKeyForm                    = enumKeyForm;
  187.     cScript                        = 'scpt';                        {  0x73637074  }
  188.     cHandler                    = 'hand';                        {  0x68616e64  }
  189.     cProcedure                    = 'proc';
  190.  
  191.     cClosure                    = 'clsr';                        {  0x636c7372  }
  192.     cRawData                    = 'rdat';                        {  0x72646174  }
  193.     cString                        = typeChar;
  194.     cStringClass                = typeChar;
  195.     cNumber                        = 'nmbr';                        {  0x6e6d6272  }
  196.     cListOrRecord                = 'lr  ';                        {  0x6c722020  }
  197.     cListOrString                = 'ls  ';                        {  0x6c732020  }
  198.     cListRecordOrString            = 'lrs ';                        {  0x6c727320  }
  199.     cNumberOrDateTime            = 'nd  ';                        {  0x6e642020  }
  200.     cNumberDateTimeOrString        = 'nds ';                        {  0x6e647320  }
  201.     cSeconds                    = 'scnd';                        {  0x73636e64  }
  202.     enumBooleanValues            = 'boov';                        {  0x626f6f76  }
  203.     kAETrue                        = typeTrue;
  204.     kAEFalse                    = typeFalse;
  205.     enumMiscValues                = 'misc';                        {  0x6d697363  }
  206.     kASCurrentApplication        = 'cura';                        {  0x63757261  }
  207. { User-defined property ospecs: }
  208.     formUserPropertyID            = 'usrp';
  209.  
  210. { Global properties: }
  211.     pASIt                        = 'it  ';                        {  0x69742020  }
  212.     pASMe                        = 'me  ';                        {  0x6d652020  }
  213.     pASResult                    = 'rslt';                        {  0x72736c74  }
  214.     pASSpace                    = 'spac';                        {  0x73706163  }
  215.     pASReturn                    = 'ret ';                        {  0x72657420  }
  216.     pASTab                        = 'tab ';                        {  0x74616220  }
  217.     pASPi                        = 'pi  ';                        {  0x70692020  }
  218.     pASParent                    = 'pare';                        {  0x70617265  }
  219.     kASInitializeEventCode        = 'init';                        {  0x696e6974  }
  220.     pASPrintLength                = 'prln';                        {  0x70726c6e  }
  221.     pASPrintDepth                = 'prdp';                        {  0x70726470  }
  222.     pASTopLevelScript            = 'ascr';
  223.  
  224. { Considerations }
  225.     kAECase                        = 'case';                        {  0x63617365  }
  226.     kAEDiacritic                = 'diac';                        {  0x64696163  }
  227.     kAEWhiteSpace                = 'whit';                        {  0x77686974  }
  228.     kAEHyphens                    = 'hyph';                        {  0x68797068  }
  229.     kAEExpansion                = 'expa';                        {  0x65787061  }
  230.     kAEPunctuation                = 'punc';                        {  0x70756e63  }
  231.     kAEZenkakuHankaku            = 'zkhk';                        {  0x7a6b686b  }
  232.     kAESmallKana                = 'skna';                        {  0x736b6e61  }
  233.     kAEKataHiragana                = 'hika';                        {  0x68696b61  }
  234. { AppleScript considerations: }
  235.     kASConsiderReplies            = 'rmte';                        {  0x726d7465  }
  236.     enumConsiderations            = 'cons';
  237.  
  238.     cCoercion                    = 'coec';                        {  0x636f6563  }
  239.     cCoerceUpperCase            = 'txup';                        {  0x74787570  }
  240.     cCoerceLowerCase            = 'txlo';                        {  0x74786c6f  }
  241.     cCoerceRemoveDiacriticals    = 'txdc';                        {  0x74786463  }
  242.     cCoerceRemovePunctuation    = 'txpc';                        {  0x74787063  }
  243.     cCoerceRemoveHyphens        = 'txhy';                        {  0x74786879  }
  244.     cCoerceOneByteToTwoByte        = 'txex';                        {  0x74786578  }
  245.     cCoerceRemoveWhiteSpace        = 'txws';                        {  0x74787773  }
  246.     cCoerceSmallKana            = 'txsk';                        {  0x7478736b  }
  247.     cCoerceZenkakuhankaku        = 'txze';                        {  0x74787a65  }
  248.     cCoerceKataHiragana            = 'txkh';                        {  0x74786b68  }
  249. { Lorax things: }
  250.     cZone                        = 'zone';                        {  0x7a6f6e65  }
  251.     cMachine                    = 'mach';                        {  0x6d616368  }
  252.     cAddress                    = 'addr';                        {  0x61646472  }
  253.     cRunningAddress                = 'radd';                        {  0x72616464  }
  254.     cStorage                    = 'stor';
  255.  
  256. { DateTime things: }
  257.     pASWeekday                    = 'wkdy';                        {  0x776b6479  }
  258.     pASMonth                    = 'mnth';                        {  0x6d6e7468  }
  259.     pASDay                        = 'day ';                        {  0x64617920  }
  260.     pASYear                        = 'year';                        {  0x79656172  }
  261.     pASTime                        = 'time';                        {  0x74696d65  }
  262.     pASDateString                = 'dstr';                        {  0x64737472  }
  263.     pASTimeString                = 'tstr';                        {  0x74737472  }
  264. { Months }
  265.     cMonth                        = pASMonth;
  266.     cJanuary                    = 'jan ';                        {  0x6a616e20  }
  267.     cFebruary                    = 'feb ';                        {  0x66656220  }
  268.     cMarch                        = 'mar ';                        {  0x6d617220  }
  269.     cApril                        = 'apr ';                        {  0x61707220  }
  270.     cMay                        = 'may ';                        {  0x6d617920  }
  271.     cJune                        = 'jun ';                        {  0x6a756e20  }
  272.     cJuly                        = 'jul ';                        {  0x6a756c20  }
  273.     cAugust                        = 'aug ';                        {  0x61756720  }
  274.     cSeptember                    = 'sep ';                        {  0x73657020  }
  275.     cOctober                    = 'oct ';                        {  0x6f637420  }
  276.     cNovember                    = 'nov ';                        {  0x6e6f7620  }
  277.     cDecember                    = 'dec ';
  278.  
  279. { Weekdays }
  280.     cWeekday                    = pASWeekday;
  281.     cSunday                        = 'sun ';                        {  0x73756e20  }
  282.     cMonday                        = 'mon ';                        {  0x6d6f6e20  }
  283.     cTuesday                    = 'tue ';                        {  0x74756520  }
  284.     cWednesday                    = 'wed ';                        {  0x77656420  }
  285.     cThursday                    = 'thu ';                        {  0x74687520  }
  286.     cFriday                        = 'fri ';                        {  0x66726920  }
  287.     cSaturday                    = 'sat ';                        {  0x73617420  }
  288. { AS 1.1 Globals: }
  289.     pASQuote                    = 'quot';                        {  0x71756f74  }
  290.     pASSeconds                    = 'secs';                        {  0x73656373  }
  291.     pASMinutes                    = 'min ';                        {  0x6d696e20  }
  292.     pASHours                    = 'hour';                        {  0x686f7572  }
  293.     pASDays                        = 'days';                        {  0x64617973  }
  294.     pASWeeks                    = 'week';                        {  0x7765656b  }
  295. { Writing Code things: }
  296.     cWritingCodeInfo            = 'citl';                        {  0x6369746c  }
  297.     pScriptCode                    = 'pscd';                        {  0x70736364  }
  298.     pLangCode                    = 'plcd';                        {  0x706c6364  }
  299. { Magic Tell and End Tell events for logging: }
  300.     kASMagicTellEvent            = 'tell';                        {  0x74656c6c  }
  301.     kASMagicEndTellEvent        = 'tend';
  302.  
  303.  
  304. {$ALIGN RESET}
  305. {$POP}
  306.  
  307. {$SETC UsingIncludes := ASRegistryIncludes}
  308.  
  309. {$ENDC} {__ASREGISTRY__}
  310.  
  311. {$IFC NOT UsingIncludes}
  312.  END.
  313. {$ENDC}
  314.